<?php

require_once('conexao.php');
require_once('exceptions/SQLException.php');

class DAO {
	
    public static function getInstance(){
        return new DAO();
    }

    public  function executeQuery($conexao, $sql) {
        if($conexao->query($sql) == false)
            throw new SQLException($conexao->error);
    }
	
}

?>